module.exports = class extends baseController {
    constructor() {
        super();
        this.sitePublishLogic = this.loadLogic('cms/site-publish');
        this.router.post('/publish', this.publish.bind(this));
        return this.router;
    }





    async publish(req, res) {
        let Result = {};
        try {
           let ret = await  this.sitePublishLogic.publish();
            Result = this.Success(1,ret);
        } catch (err) {
            Result = this.Error("发布失败", err);
        }
        res.json(Result);
    }


};
